﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Select : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        linkButton1.Text = "关注";
        linkButton2.Text = "正在竞拍";
        linkButton3.Text = "竞拍记录";
        linkButton4.Text = "正在拍卖";
        linkButton5.Text = "拍卖记录";
    }
    /// <summary>
    /// LinkButtonClick事件处理函数类型
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="s">被点击的选项文字</param>
    public delegate void LinkButtonClickHandler(object sender, String s);
    // LinkButtonClick事件
    public event LinkButtonClickHandler clickLinkButton;
    #region 各个linkButton事件处理
    protected void linkButton1_Click(object sender, EventArgs e)
    {
        clickLinkButton(this, linkButton1.Text);
    }
    protected void linkButton2_Click(object sender, EventArgs e)
    {
        clickLinkButton(this, linkButton2.Text);
    }
    protected void linkButton3_Click(object sender, EventArgs e)
    {
        clickLinkButton(this, linkButton3.Text);
    }
    protected void linkButton4_Click(object sender, EventArgs e)
    {
        clickLinkButton(this, linkButton4.Text);
    }
    protected void linkButton5_Click(object sender, EventArgs e)
    {
        clickLinkButton(this, linkButton5.Text);
    }
    #endregion
}